
import request from '@/utils/request';

// 查询【请填写功能名称】列表
export function listInfo(query) {
  return request({
    url: '/alm/dev/getway/lable/labelist',
    method: 'post',
    params: query
  })
}

// 查询
export function getInfo(id) {
  return request({
    url: '/alm/dev/getway/lable/queryById/' + id,
    method: 'get'
  })
}

// 新增
export function addInfo(data) {
  return request({
    url: '/alm/dev/getway/lable/insertLable',
    method: 'post',
    data: data
  })
}

// 修改
export function updateInfo(data) {
  return request({
    url: '/alm/dev/getway/lable/updateLable',
    method: 'put',
    data: data
  })
}

// 删除
export function delInfo(id) {
  return request({
    url: '/alm/dev/getway/lable/delLable/' + id,
    method: 'delete'
  })
}


export function queryImgInfoById(id) {
  return request({
    url: '/alm/dev/getway/lable/queryImgInfoById/' + id,
    method: 'get'
  })
}

// 标签图片上传
export function uploadAvatar(data) {
  return request({
    url: '/alm/dev/getway/lable/avatar',
    method: 'post',
    data: data
  })
}

export function refreshImg(data) {
  return request({
    url: '/alm/dev/getway/lable/refreshImg',
    method: 'post',
    data: data
  })
}
export function querschedule(mac) {
  return request({
    url: '/alm/dev/getway/lable/querySchedule/'+mac,
    method: 'get'
  })
}